<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			原始数据：<input type="text" v-model="message" /><br />
			转成大写：{{message | upper}}
		</div>
		
		<script src="../js/vuejs-2.5.16.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			
			/* 1、定义过滤器，获取原始数据 */
			Vue.filter("upper",function(value){
				return value.toUpperCase()
			})
			
			const vue = new Vue({
				el: "#app",
				data: {
					message: ""
				}
			})
		</script>
		
	</body>
</html>
